﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using KaartenLib;

namespace KaartFormApp
{
    public partial class Registration : Form
    {
        Speler speler;
        public Registration(Speler s)
        {
            speler = s;
            InitializeComponent();
        }

        private void Registration_Load(object sender, EventArgs e)
        {

        }

        private void btnStart_Click(object sender, EventArgs e)
        {
            String name = txtPlayer.Text;
            int saldo = Convert.ToInt32(txtSaldo.Text);
            speler.Nickname = name;
            speler.Punten = saldo;
            this.Close();
          
        }
    }
}
